package com.bw.service;

import com.alibaba.fastjson.JSONObject;
import com.bw.mapper.TrafficMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service//表明是服务类
public class TrafficServiceimp implements TrafficService {
//    @Autowired
//    TrafficDao dao;
    @Autowired
    TrafficMapper  mapper;

    @Override
    public List<JSONObject> findchcount() {
        return mapper.findchcounta();
    }

    @Override
    public List<JSONObject> findchcount2() {
        return mapper.findchcount2();
    }

    @Override
    public List<JSONObject> findchcount3() {
        return mapper.findchcount3();
    }
}
